<?php
declare(strict_types=1);

namespace App\Console\Commands\Tasks;


use App\Repositories\Dynamic\DynamicRepository;
use Illuminate\Console\Command;

class DynamicCommand extends Command
{
    //命令名
    protected $signature = 'task:dynamic_score';

    //命令描述: 动态更新热度
    protected $description = 'dynamic update score';

    public function getSignature()
    {
        return $this->signature;
    }

    public function __construct()
    {
        parent::__construct();
    }

    //业务处理
    public function handle()
    {
        DynamicRepository::getInstance()->handleCurrentScore();
    }

}